#include"../../include/user_tool.h"
vector<int> user_tool::friend_list_renew_able(vector<string> friends, string user_name)
{
    int i;
    for(i=0;i<user.size();i++)
    {
        if(names[i]==user_name)
        {
            cout<<"@@@"<<endl;
            user_friend[i]=friends;
            break;
        }
    }
    int m,ju;
    vector <int> status;
    for(i=0;i<friends.size();i++)
    {
        cout<<i<<endl;
        ju=0;
        status.push_back(0);
        for(m=0;m<names.size();m++)
        {
            if(names[m]==friends[i])
            {
                status[status.size()-1]=1;
                break;
            }
        }
    }
    return status;
}